package com.ruoyi.system.domain;

import com.ruoyi.system.domain.Question;
import lombok.Data;



@Data
public class Answer {


    private Integer id;

    // 关联试题表的外键

    private Question question;

    // 选项内容或简答题答案
    private String optionContent;

    // 是否正确答案，0:不是正确答案，1:是正确答案
    private Integer isCorrect;

    // 选项顺序，单选题和多选题有用
    private Integer optionOrder;

    // 省略getter和setter方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Question getQuestion() {
        return question;
    }

    public void setQuestion(Question question) {
        this.question = question;
    }

    public String getOptionContent() {
        return optionContent;
    }

    public void setOptionContent(String optionContent) {
        this.optionContent = optionContent;
    }

    public Integer getIsCorrect() {
        return isCorrect;
    }

    public void setIsCorrect(Integer isCorrect) {
        this.isCorrect = isCorrect;
    }

    public Integer getOptionOrder() {
        return optionOrder;
    }

    public void setOptionOrder(Integer optionOrder) {
        this.optionOrder = optionOrder;
    }
}